names = ['jen', 'phil', 'peter', 'john']
favorite_languages = {'jen': 'python', 'sarah': 'c', 'edward': 'ruby',
                      'phil': 'python'}
for name in names:
    if name in favorite_languages.keys():
        print(name.title() + ',thanks for your help!')
    else:
        print(name.title() + ',could you participate in my investigation?')